<?php

/*
 * @author Aldis Rameika
 */
add_mini_help('database');

/* Content */
require 'Processing/Subdivisions/subdivision_data_processing.php';
require 'DB/db_data_loader.php';
require 'CurrentDataDesign.php';

$subdivisions = get_subdivisions();
$administration = get_support_administration();
$measures = get_support_measures_associative();
$is_subs = get_is_subdivisions();
$is = get_information_systems();
$dates = SubdivisionData::get_dates_predicted(0);
$historical_quantities = get_sorted_historical_quantities();

if (count($dates) < 1 || count($historical_quantities) < 1) {
    echo "Esamų duomenų nėra. Pirma importuokite juos.";
    return;
} else {
    CurrentDataDesign::show_current_data($subdivisions, $administration, $measures, $is_subs, $dates, $historical_quantities, $is);
}
?>